package cn.mw.cmdb.entity.instanceToPo;

import cn.mw.cmdb.entity.PropertyTypeString;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("mw_cmdbmd_instance_view_info")
@Schema(description = "模型关系分组信息")
public class InstanceViewInfo {
    @CMDBProperty(searchType = PropertyTypeString.ID, searchPrefix = "_")
    @AutoId
    @Schema(description = "id")
    private String id;

    @Schema(description = "实例id")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String instanceId;

    @Schema(description = "视图名称")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String viewName;
}
